package com.byxy.demo01.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.byxy.demo01.entity.Items;

public interface ItemsDao {
	
	@Insert("insert into items(introduction,img,name,price) values(#{introduction},#{img},#{name},#{price})")
	void add(Items item);

	
	@Select("select * from items")
	List<Items> list();
	

}
